import { Button } from 'antd'
// import { useSelector } from 'react-redux'
import { useGoTo } from '@/hooks'
import { ROUTE_KEY } from '@/routes/menus'
import style from './index.module.less'
// import { IState } from '@/utils/types'

/**
* 首页
*/
const Home = () => {
  // const currentOrg = useSelector((state: IState) => state.currentOrg)
  const { go } = useGoTo()
  
  return (
    <div className={style.container}>
      <Button onClick={() => go(ROUTE_KEY.MY)}>
        去个人中心
        {/* { currentOrg } */}
      </Button>
    </div>
  )
}

export default Home
